<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.w3.org/1999/xhtml">
<head>
    <meta charset="UTF-8">
    <link rel="stylesheet" href="../../css/mypost/mypost.css">

    <title>个人帖子</title>
</head>
<body>


<table class="hovertable" th:width="880">

            <tr>
                <th>标题</th>
                <th>类型</th>
                <th>作者</th>
                <th>发表时间</th>
                <th>点赞</th>
                <th>收藏</th>

            </tr>
            <tr  th:each="mypost,mypostStat : ${myposts}" >
                <td th:text="${mypost.ptitle}"></td>
                <td th:text="${mypost.ptype}"></td>
                <td th:text="${mypost.username}"></td>
                <td th:text="${mypost.ptime}"></td>
                <td th:text="${mypost.giveup}"></td>
                <td th:text="${mypost.collect}"></td>

            </tr>
        </table>

<br/>

<table>
    <tr>
        <td><a href="/mypost/viewpost?num=0">首页</a></td>
        <td th:if="${pageInfo.getPrePage()} != '0' "><a href="javascript:;" th:href="${'/mypost/viewpost?num='+pageInfo.getPrePage()}" >上一页</a> </td>
        <td th:if="${pageInfo.getPrePage()} eq '0' ">上一页</td>
        <td><span th:text="${pageInfo.getPageNum()}" > </span></td>
        <td>/</td>
        <td><span th:text="${pageInfo.getPages()}" > </span></td>
        <td th:if="${pageInfo.getNextPage()} != '0' "><a href="javascript:;" th:href="${'/mypost/viewpost?num='+pageInfo.getNextPage()}" >下一页</a></td>
        <td th:if="${pageInfo.getNextPage()} eq '0' ">下一页</td>
        <td><a href="javascript:;" th:href="${'/mypost/viewpost?num='+pageInfo.getPages()}">尾页</a></td>
        <td>
            <form action="/mypost/viewpost" method="get">
                <input type="hidden" id="nn" th:value="${pageInfo.getPages()}">
                跳转到: <input type="text" id="ss" name="num" value="" style="width: 20px">
                <input type="submit" onclick="f()" value="确定">
            </form>
        </td>

    </tr>
</table>



</body>
</html>

